let a = 1
// 产生闭包
function fn() {
  console.log(a);
}

function fn1() {
  let a = 2
  // 产生闭包
  return () => {
    console.log(a);
  }
}
fn()
const fn2 = fn1()
fn2()
console.dir(fn1())